package com.wjy.Data_Structure.linearlist.common;

//单链表结点定义
public class SLNode implements Node {

	private Object element;
	private SLNode next;

	public SLNode() {

	}

	public SLNode(Object ele, SLNode next) {
		this.element = ele;
		this.next = next;
	}

	public SLNode getNext() {
		return next;
	}

	public void setNext(SLNode next) {
		this.next = next;
	}

	/******** Methods of Node Interface **********/
	@Override
	public Object getData() {
		return element;
	}

	@Override
	public void setData(Object obj) {
		element = obj;
	}

}
